#pragma once
#include "stdafx.h"
#include "addinbaseoperator.h"

class CCalculateOperator :
	public CAddInBaseOperator
{
public:
	enum OpType
	{
		Width,Length
	};
public:
	CCalculateOperator(HDiMineView* view,IDMAddIn *addin,OpType type);
	~CCalculateOperator(void);

	virtual int Init();
	virtual int OnLButtonDown(dmEventInfo &hevent);
	virtual void Resume(void *pUserData);

private:
	bool m_bProcessing;
	OpType m_type;
	void CalculateAverage();
};
